<!DOCTYPE HTML>
<html>
<head>
<#include "common.html"/>
<style type="text/css">

.long{
    width: 210px;
}

.short{
    width: 110px!important;
}

input[name='param']{
    width: 100px;
}
</style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">

<#include "header.html"/>
<#include "menu.html"/>

    <div class="layui-body">


        <!-- 内容主体区域 -->
        <div style="padding: 15px">
            <fieldset class="layui-elem-field layui-field-title">
                <legend>${i18n.get("menu.artJob")}</legend>
            </fieldset>



            <form class="layui-form" id="searchForm" method="post">
                <div class="layui-form">

                    <div class="layui-col-md2"><div class="grid-demo">
                        <div class="layui-input-group">
                            <div class="layui-input-split layui-input-prefix">artId</div>
                            <input type="text" name="artId" class="layui-input">
                        </div>
                    </div></div>

                    <div class="layui-col-md2"><div class="grid-demo">
                        <div class="layui-input-group">
                            <div class="layui-input-split layui-input-prefix">name</div>
                            <input type="text" name="artName" class="layui-input">
                        </div>
                    </div></div>

                    <div class="layui-col-md2"><div class="grid-demo">
                        <div class="layui-input-group">
                            <div class="layui-input-split layui-input-prefix">url</div>
                            <input type="text" name="artUrl" class="layui-input">
                        </div>
                    </div></div>

                    <div class="layui-col-md2"><div class="grid-demo">
                        <div class="layui-input-group">
                            <div class="layui-input-split layui-input-prefix">status</div>
                            <select name="status">
                                <option value=""></option>
                                <option value="1">完成</option>
                                <option value="0">下载中</option>
                                <option value="2">失败</option>
                            </select>
                        </div>
                    </div></div>



<!--                    <div class="layui-col-md2"><div class="grid-demo">-->
<!--                        <div class="layui-input-group">-->
<!--                            <div class="layui-input-split layui-input-prefix">uri</div>-->
<!--                            <input type="text" name="uri" class="layui-input">-->
<!--                        </div>-->
<!--                    </div></div>-->

<!--                    <div class="layui-col-md2"><div class="grid-demo">-->
<!--                        <div class="layui-input-group">-->
<!--                            <div class="layui-input-split layui-input-prefix">label</div>-->
<!--                            <input type="text" name="label" class="layui-input">-->
<!--                        </div>-->
<!--                    </div></div>-->



                    <div class="layui-col-md2"><div class="grid-demo">
                        <div class="layui-btn-container layui-col-xs12">

                            <button class="layui-btn layui-btn-sm" lay-submit lay-filter="demo-table-search">${i18n.get("commonStr.search")}</button>
                            <button class="layui-btn layui-btn-sm layui-btn-primary" type="reset" >${i18n.get("commonStr.clear")}</button>
                        </div>
                    </div></div>






                </div>
            </form>


            <table class="layui-hide" id="demo" lay-filter="test"></table>


        </div>
    </div>
</div>


<div style="height: 500px; width: 300px; overflow: hidden;">
    <!-- 弹出框 -->
    <div class="layui-form" id="windowDiv" style="padding: 15px; display: none">
        <form id="addForm1">
            <input type="hidden" name="u">

            <div class="layui-form-item" id="div_id">
                <label class="layui-form-label">id</label>
                <div class="layui-input-block">
                    <input type="text" name="id" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">name</label>
                <div class="layui-input-block">
                    <input type="text" name="name" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">url</label>
                <div class="layui-input-block">
                    <input type="text" name="url" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">自动下载</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="autoJob" title="ON|OFF" lay-skin="switch" value="1" checked lay-filter="demo-checkbox-filter">
                </div>
            </div>


<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">apiKey</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <input type="text" name="apiKey" class="layui-input">-->
<!--                </div>-->
<!--            </div>-->

<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">agentUrl</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <input type="text" name="agentUrl" class="layui-input">-->
<!--                </div>-->
<!--            </div>-->


<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">agentApiKey</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <input type="text" name="agentApiKey" class="layui-input">-->
<!--                </div>-->
<!--            </div>-->

            <div class="layui-form-item center">
                <button type="button" class="layui-btn layui-btn-normal" id="addOver">${i18n.get("commonStr.submit")}</button>
                <button type="button" class="layui-btn" onclick="layer.closeAll()">${i18n.get("commonStr.close")}</button>
            </div>
        </form>
    </div>

    <div class="layui-form" id="guideDiv" style="padding: 15px; display: none;">
        <form id="addForm3">

            <div class="layui-form-item" style="display:none">
                <label class="layui-form-label">id</label>
                <div class="layui-input-block">
                    <input type="text" name="id" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item" style="margin-top:20px;margin-bottom:20px">
                <label class="layui-form-label">tar file</label>
                <!--                <div class="layui-input-block">-->
                <!--                    <button type="button" class="layui-btn layui-btn-normal" id="upload-cert">cert file</button>-->
                <!--                </div>-->
                <div class="layui-input-inline short">
                    <button type="button" class="layui-btn layui-btn-normal" id="upload-cert">file</button>
                </div>
                <div class="layui-form-mid layui-word-aux"><span class="layui-inline layui-upload-choose" id="layui-upload-choose-cert"></span></div>

            </div>


            <div class="layui-form-item center">
                <button type="button" class="layui-btn layui-btn-normal" id="ID-upload-demo-action">${i18n.get("commonStr.submit")}
                    <i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop" id="loading" style="display: none"></i>
                </button>
                <button type="button" class="layui-btn" onclick="layer.closeAll()">${i18n.get("commonStr.close")}</button>
            </div>

        </form>
    </div>







</div>

<#include "script.html"/>
<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add" style="display: none"><i class="layui-icon  layui-icon-add-1"></i></button>
        <button class="layui-btn layui-btn-sm" lay-event="deleteSelected"><i class="layui-icon  layui-icon-delete"></i></button>
        <button class="layui-btn layui-btn-sm" lay-event="getCheckData" style="display: none">获取选中行数据</button>
        <button class="layui-btn layui-btn-sm" lay-event="statusAll1" style="display: none">${i18n.get("commonStr.batchEnable")}</button>
        <button class="layui-btn layui-btn-sm" lay-event="statusAll0" style="display: none">${i18n.get("commonStr.batchDisable")}</button>
        <span id="yourDiv" class="layui-btn layui-btn-primary layui-border-red" style="display: none"></span>
        <span id="threadDiv" class="layui-btn layui-btn-primary layui-border-red" style="display: none"></span>
    </div>
</script>
<script src="${ctx}/lib/base64/base64.js" type="text/javascript"></script>
<script src="${ctx}/js/admin/artJob/index.js?v=${jsrandom}" type="text/javascript"></script>
</body>
</html>